package com.jiazhong.boot.mvc.controller;

import com.jiazhong.boot.commons.util.JsonResult;
import com.jiazhong.boot.commons.util.ResultTool;
import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@Slf4j
@RestController
@RequestMapping("/seventh")
public class SeventhController {

    @GetMapping
    public JsonResult execute(HttpServletRequest request) {
        String token = request.getHeader("token");
        log.info("token:{}", token);
        return ResultTool.success(token);
    }
}
